<?php

abstract class Operation
{
    protected $data;

    abstract function getResult();

    public function __set($k, $v)
    {
        $this->data[$k] = $v;
    }
}